<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="common/head.html::common_head"/>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
    <script type="text/javascript" src="js/tl/tlGangRank.js"></script>
    <script type="text/javascript" src="js/rank.js"></script>
</head>

<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--左侧导航-->
        <th:block th:include="common/sidebar.html::common_sidebar"/>
        <!--End 左侧导航-->

        <!--头部信息-->
        <th:block th:include="common/head.html::common_header"/>
        <!--End 头部信息-->

        <!--页面主要内容-->
        <main class="lyear-layout-content">

            <div class="container-fluid">

                <div class="row">
                    <div class="col-lg-12">
                        <div class="card">
                            <div class="card-toolbar clearfix">
                                <div class="toolbar-btn-action">
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-primary dropdown-toggle"
                                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
                                                style="width: 200px">
                                            大区 <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" style="height:400px;overflow-y:scroll" >
                                            <li th:each="server:${serverInfoVOList}">
                                                <a th:href="'javascript:getArea(\''+ ${server.serverName} +'\');'" th:text="${server.serverName}"></a>
                                            </li>
                                        </ul>
                                    </div>
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-primary dropdown-toggle"
                                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
                                                style="width: 200px">
                                            小区 <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" style="height:400px;overflow-y:scroll" id="areaList">
                                        </ul>
                                    </div>
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-primary dropdown-toggle"
                                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
                                                style="width: 200px">
                                            top50帮会 <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" style="height:400px;overflow-y:scroll" id="gangList">
                                        </ul>
                                    </div>
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-primary dropdown-toggle"
                                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
                                                style="width: 200px">
                                            图表 <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" style="height:auto;overflow-y:auto">
                                            <li><a href="#!">折线图</a></li>
                                        </ul>
                                    </div>
                                    <div class="btn-group">
                                        <button class="btn btn-primary btn-w-md" type="button" onclick="clearChart()">清空</button>
                                    </div>
                                </div>

                            </div>
                            <div class="card-body" style="height: 700px">
                                <div id="container" style="height: 100%;"></div>
                            </div>
                        </div>
                    </div>

                </div>

            </div>

        </main>
        <!--End 页面主要内容-->
    </div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>
<script type="text/javascript">
    $(function () {
        $('.search-bar .dropdown-menu a').click(function () {
            var field = $(this).data('field') || '';
            $('#search-field').val(field);
            $('#search-btn').html($(this).text() + ' <span class="caret"></span>');
        });
    });
</script>
</body>
</html>